//
//  JSLoadingView.h
//  NiubilityProject
//
//  Created by Apple on 2018/3/6.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, JSLoadingContenStyle) {
    JSLoadingGIF,
    JSLoadingCycle,
};

@interface JSLoadingView : UIView

@property (nonatomic, strong) UIImageView *imageView;
@property (nonatomic, assign) UIEdgeInsets edgeInsets;
@property (nonatomic, assign) JSLoadingContenStyle style;

+(void)showLoadingInView:(UIView *)view;
+(void)showLoadingInview:(UIView *)view edgeInsets:(UIEdgeInsets)edgeInsets;
+(void)hidenLoadingForView:(UIView *)view;
+(void)hidenAllLoadingForView:(UIView *)view;
+(JSLoadingView *)loadingForView:(UIView *)view;
+(void)showLoadingInView:(UIView *)view topEdge:(CGFloat)topEdge;
-(void)showInView:(UIView *)view;
-(void)hiden;

@end
